package com.zxw.common.core.base.constant;

import com.zxw.common.core.base.entity.MailAccountSon;

import java.util.HashMap;
import java.util.Map;

public interface SysConstants {

    Long SYS_ID = 0l;
    String SYS_NAME = "system";

    // 根节点菜单的父节点的id
    Long ROOT_MENU_ID = 0l;

    // 流程图业务默认companyId
    Long FLOW_SERVICE_DEF_COMPANY_ID = 0l;
    // 流程图业务默认角色Id
    Long FLOW_SERVICE_DEF_ROLE_ID = 1l;

    String FLOW_SERVICE_DEF_JSON_DATA = "{\"cells\":[{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"d2459ae0-124c-46dc-a33a-ec72af90d426\",\"zIndex\":0,\"source\":{\"cell\":\"8fcd9042-dfd0-42c6-b633-e1e87fdc3a3a\",\"port\":\"28d8b359-5e83-46ab-83d7-44f563182c80\"},\"target\":{\"cell\":\"031b1a75-41a3-473c-8ff4-fc48420bc5c8\",\"port\":\"afee7f75-5588-4d8a-8146-adbe6053bc3d\"}},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"7450008a-1ff0-42c0-a77f-e3e7a368309f\",\"zIndex\":0,\"source\":{\"cell\":\"031b1a75-41a3-473c-8ff4-fc48420bc5c8\",\"port\":\"45a42edb-db71-4812-b48e-a8bf2ee5b39a\"},\"target\":{\"cell\":\"d0c61187-4529-4cc9-8e04-cbd5a83710f9\",\"port\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"}},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"9d6f4925-d797-493e-9923-25b54790b948\",\"zIndex\":0,\"source\":{\"cell\":\"d0c61187-4529-4cc9-8e04-cbd5a83710f9\",\"port\":\"03b143c4-6bd0-47f8-bca6-c9b54788c2bf\"},\"target\":{\"cell\":\"c3ee17fc-a207-4480-a16e-4c81efd1d359\",\"port\":\"a813a43a-a1f2-4ec6-91ce-4cfcebd426e8\"}},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"a34d035e-2c47-4cb8-8d13-65ece3cef09e\",\"zIndex\":0,\"source\":{\"cell\":\"d0c61187-4529-4cc9-8e04-cbd5a83710f9\",\"port\":\"4fbf34df-af4b-48c9-aa09-1d70d14b5767\"},\"target\":{\"cell\":\"02fa4fc7-1322-4a1b-87de-3ce3d838f709\",\"port\":\"a813a43a-a1f2-4ec6-91ce-4cfcebd426e8\"}},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"3e8511a9-2512-462b-b993-570e5878e847\",\"zIndex\":0,\"source\":{\"cell\":\"02fa4fc7-1322-4a1b-87de-3ce3d838f709\",\"port\":\"8ee9cc42-c857-469c-9f34-ead28aba0184\"},\"target\":{\"cell\":\"e995b939-6a44-4e71-9ead-ddbbd3609c44\",\"port\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"}},{\"shape\":\"edge\",\"attrs\":{\"line\":{\"stroke\":\"#A2B1C3\",\"targetMarker\":{\"name\":\"block\",\"width\":12,\"height\":8}}},\"id\":\"bcdb3020-59eb-4f8c-8575-ab93f2fd868b\",\"zIndex\":0,\"source\":{\"cell\":\"c3ee17fc-a207-4480-a16e-4c81efd1d359\",\"port\":\"8ee9cc42-c857-469c-9f34-ead28aba0184\"},\"target\":{\"cell\":\"dcfca3f0-3edb-4d30-9030-8f00078a04d9\",\"port\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"}},{\"position\":{\"x\":300,\"y\":150},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"洗漱\"}},\"visible\":true,\"shape\":\"custom-rect\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"afee7f75-5588-4d8a-8146-adbe6053bc3d\"},{\"group\":\"right\",\"id\":\"77b2536a-c944-4fff-8cbf-c0fda37d6da0\"},{\"group\":\"bottom\",\"id\":\"45a42edb-db71-4812-b48e-a8bf2ee5b39a\"},{\"group\":\"left\",\"id\":\"b905400d-e56d-44d5-8886-7637d3d8e097\"}]},\"id\":\"031b1a75-41a3-473c-8ff4-fc48420bc5c8\",\"zIndex\":1,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":300,\"y\":59},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"起床\"},\"body\":{\"rx\":20,\"ry\":26}},\"visible\":true,\"shape\":\"custom-rect\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"04118fbf-8459-4387-8e0c-c6f15ad4cff8\"},{\"group\":\"right\",\"id\":\"a6e97519-1fb4-4d40-a7b4-20c67c1abc7d\"},{\"group\":\"bottom\",\"id\":\"28d8b359-5e83-46ab-83d7-44f563182c80\"},{\"group\":\"left\",\"id\":\"9de8f37d-e5aa-4fde-b6e0-c4ca5a7392fd\"}]},\"id\":\"8fcd9042-dfd0-42c6-b633-e1e87fdc3a3a\",\"zIndex\":2,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":278,\"y\":249},\"size\":{\"width\":110,\"height\":40},\"attrs\":{\"text\":{\"text\":\"时间大于8点\"}},\"visible\":true,\"shape\":\"custom-rect\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"},{\"group\":\"right\",\"id\":\"03b143c4-6bd0-47f8-bca6-c9b54788c2bf\"},{\"group\":\"bottom\",\"id\":\"4fbf34df-af4b-48c9-aa09-1d70d14b5767\"},{\"group\":\"left\",\"id\":\"70eae112-2f99-49fa-b89d-a8672b568218\"}]},\"id\":\"d0c61187-4529-4cc9-8e04-cbd5a83710f9\",\"zIndex\":3,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":300,\"y\":351},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"否\"},\"body\":{\"refPoints\":\"0,10 10,0 20,10 10,20\"}},\"visible\":true,\"shape\":\"custom-polygon\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"a813a43a-a1f2-4ec6-91ce-4cfcebd426e8\"},{\"group\":\"bottom\",\"id\":\"8ee9cc42-c857-469c-9f34-ead28aba0184\"}]},\"id\":\"02fa4fc7-1322-4a1b-87de-3ce3d838f709\",\"zIndex\":4,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":470,\"y\":351},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"是\"},\"body\":{\"refPoints\":\"0,10 10,0 20,10 10,20\"}},\"visible\":true,\"shape\":\"custom-polygon\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"a813a43a-a1f2-4ec6-91ce-4cfcebd426e8\"},{\"group\":\"bottom\",\"id\":\"8ee9cc42-c857-469c-9f34-ead28aba0184\"}]},\"id\":\"c3ee17fc-a207-4480-a16e-4c81efd1d359\",\"zIndex\":5,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":300,\"y\":443},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"走着上班\"}},\"visible\":true,\"shape\":\"custom-rect\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"},{\"group\":\"right\",\"id\":\"03b143c4-6bd0-47f8-bca6-c9b54788c2bf\"},{\"group\":\"bottom\",\"id\":\"4fbf34df-af4b-48c9-aa09-1d70d14b5767\"},{\"group\":\"left\",\"id\":\"70eae112-2f99-49fa-b89d-a8672b568218\"}]},\"id\":\"e995b939-6a44-4e71-9ead-ddbbd3609c44\",\"zIndex\":6,\"tools\":{\"items\":[],\"name\":null}},{\"position\":{\"x\":470,\"y\":443},\"size\":{\"width\":66,\"height\":36},\"attrs\":{\"text\":{\"text\":\"骑车上班\"}},\"visible\":true,\"shape\":\"custom-rect\",\"ports\":{\"groups\":{\"top\":{\"position\":\"top\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"right\":{\"position\":\"right\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"bottom\":{\"position\":\"bottom\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}},\"left\":{\"position\":\"left\",\"attrs\":{\"circle\":{\"r\":4,\"magnet\":true,\"stroke\":\"#5F95FF\",\"strokeWidth\":1,\"fill\":\"#fff\",\"style\":{\"visibility\":\"hidden\"}}}}},\"items\":[{\"group\":\"top\",\"id\":\"9d1438c1-a070-43a8-aaf5-435b55257f17\"},{\"group\":\"right\",\"id\":\"03b143c4-6bd0-47f8-bca6-c9b54788c2bf\"},{\"group\":\"bottom\",\"id\":\"4fbf34df-af4b-48c9-aa09-1d70d14b5767\"},{\"group\":\"left\",\"id\":\"70eae112-2f99-49fa-b89d-a8672b568218\"}]},\"id\":\"dcfca3f0-3edb-4d30-9030-8f00078a04d9\",\"zIndex\":7,\"tools\":{\"items\":[],\"name\":null}}]}";


    String CREATE_TIME_PROPERTY = "createTime";

    String LAST_UPDATE_TIME_PROPERTY = "lastUpdateTime";

    // 初始化更新字段
    Map<String, String> INIT_UPDATE_PROPERTY_MAP = new HashMap<String, String>() {{
        put("companyId", "companyId");
        put("lastUpdateUserId", "userId");
        put("lastUpdateUserAccount", "account");
        put("lastUpdateTime", "lastUpdateTime");
    }};

    // 初始化新增字段
    Map<String, String> INIT_INSERT_PROPERTY_MAP = new HashMap<String, String>() {{
        put("companyId", "companyId");
        put("createUserAccount", "account");
        put("createTime", "createTime");
        put("createUserId", "userId");
        put("lastUpdateUserId", "userId");
        put("lastUpdateUserAccount", "account");
        put("lastUpdateTime", "lastUpdateTime");
    }};

    // 初始化查询字段
    Map<String, String> INIT_SELECT_PROPERTY_MAP = new HashMap<String, String>() {{
        put("companyId", "companyId");
    }};

    String EMAIL_126 = "126";
    String EMAIL_qq = "qq";
    // 邮件服务器
    Map<String, MailAccountSon> SYS_EMAIL_MAP = new HashMap<String, MailAccountSon>() {{
        put(EMAIL_126, new MailAccountSon("zhangxuewei0303@126.com", "CTLTOACYTUDXKDEJ",true));
        put(EMAIL_qq, new MailAccountSon("2289998609@qq.com", "rptyycgfooqnebhj",true));
    }};

}
